package com.hawthorn.admin.feign.redisService;

import com.hawthorn.admin.model.po.SysCompanyPO;
import com.hawthorn.platform.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.HystrixFallbackFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>todo </p>
 * @author: WCZ
 * @created: 2022/7/20$ 16:49$
 * @version v1.0.1
 */

@FeignClient(name = "sentury-redis", path = "/company", configuration = FeignConfig.class, fallbackFactory = HystrixFallbackFactory.class, contextId = "companyRedisClient")
public interface RedisCompanyFeignService
{
  @PostMapping(value = "/cacheCompanyById")
  void cacheCompanyById(@RequestBody List<SysCompanyPO> sysCompanyPOList);
}
